//
//  DisCover_Welfare_SpeCell.m
//  MindBox
//
//  Created by MS on 16-1-6.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "DisCover_Welfare_SpeCell.h"
#import "ImageTitleView.h"
#import "UIImageView+WebCache.h"
#import "UIView+Frame.h"
@interface DisCover_Welfare_SpeCell ()
@property (nonatomic,weak) ImageTitleView * imagV;

@end

@implementation DisCover_Welfare_SpeCell

-(ImageTitleView *)imagV
{
    if (_imagV==nil) {
        ImageTitleView * view = [ImageTitleView imageTitleViewWithXib];
        _imagV = view;
        [self.contentView addSubview:view];
    }
    return _imagV;
}

-(void)setGoods:(Discover_Goods *)goods
{
    _goods = goods;
    [self.imagV.imageView sd_setImageWithURL:[NSURL URLWithString:goods.image_url]];
    self.imagV.titleView.text = @"更多即将开始福利";
    self.imagV.titleView.font = [UIFont boldSystemFontOfSize:16];
    self.imagV.subTitleView.text = @"请戳这里";
    self.imagV.subTitleView.backgroundColor = [UIColor blackColor];
}

- (void)awakeFromNib {
    // Initialization code
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.imagV.frame = self.bounds;
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Configure the view for the selected state
}

@end
